<template>
    <div class="mmv-account-center">
        <div class="mmv-layout">
            <div class="mmv-container mmv-account-center-header">
                <mmvAvatar class="mmv-account-center-header__avatar" is_official pendant="https://upload-bbs.mihoyo.com/upload/2020/11/17/272b81c0c714f6ac6ea7a94cc2d794de_5892484489390971467.png" size="xxl" src="https://img-static.mihoyo.com/communityweb/upload/ab5ebe41f1b04d2aa7500fbfbeebcf10.png"></mmvAvatar>
                <div class="mmv-account-center-user">
                    <div class="mmv-account-center-user__title">
                        <span class="mmv-account-center-user__name">米米法</span>
                        <img class="mmv-img-icon mmv-account-center-user__level mmv-account-center-user__level--self" src="https://img-static.mihoyo.com/level/level15.png" />
                        <span class="mmv-account-center-user__uid">通行证ID:4844117</span>
                    </div>
                    <div class="mmv-account-center-user__intro">
                        <span>
                            <svg class="mmv-symbol-icon">
                                <use xlink:href="#icon-signature" />
                            </svg>
                        </span>
                        <p>砂糖本糖</p>
                    </div>
                    <div class="mmv-account-center-header__buttons">
                        <!-- 是本人的话为编辑按钮 -->
                        <template v-if="true">
                            <mmvButton class="mmv-account-center-header__edit" outlined size="md">编辑</mmvButton>
                        </template>
                        <!-- 不是本人则为关注按钮 -->
                        <template v-else>
                            <mmvFollowButton :uid="1" size="lg"></mmvFollowButton>
                        </template>
                    </div>
                </div>
                <div class="mmv-account-center-header__data">
                    <div class="mmv-account-center-header__data-item">
                        <a class="mmv-account-center-header__data-num mmv-account-center-header__data-link" href>6</a>
                        <div class="mmv-account-center-header__data-label">粉丝</div>
                    </div>
                    <div class="mmv-account-center-header__data-item">
                        <a class="mmv-account-center-header__data-num mmv-account-center-header__data-link" href>21</a>
                        <div class="mmv-account-center-header__data-label">关注</div>
                    </div>
                    <div class="mmv-account-center-header__data-item">
                        <a class="mmv-account-center-header__data-num mmv-account-center-header__data-link" href>886</a>
                        <div class="mmv-account-center-header__data-label">获赞</div>
                    </div>
                </div>
            </div>
            <mmvSideMenu class="mmv-container mmv-account-center__menu"></mmvSideMenu>
            <div class="mmv-container mmv-account-center-content">
                <router-view></router-view>
            </div>
        </div>
    </div>
</template>

<script>
import mmvSideMenu from "@/components/mmv-side-menu.vue";
import mmvAvatar from "@/components/mmv-avatar.vue";
import mmvButton from "@/components/mmv-button.vue";
import mmvFollowButton from "@/components/mmv-follow-button.vue";
import mmvArticleCard from "@/components/mmv-article-card.vue";
import mmvAccountCenterReplyCard from "@/components/mmv-account-center-reply-card.vue";
import mmvLoadmore from "@/components/mmv-loadmore.vue";

export default {
    components: {
        mmvSideMenu,
        mmvAvatar,
        mmvButton,
        mmvFollowButton,
        mmvArticleCard,
        mmvAccountCenterReplyCard,
        mmvLoadmore,
    },
};
</script>

<style lang="less">
.mmv-account-center {
    &-header {
        padding: 20px 50px;
        display: flex;
        margin-bottom: 20px;
        &__avatar {
            margin-right: 30px;
            flex-shrink: 0;
        }
        &__data {
            display: flex;
            height: 50px;
            align-items: center;
            align-self: center;
            flex-shrink: 0;
            &-item {
                min-width: 100px;
                padding: 0 20px;
                text-align: center;
                &:last-child {
                    padding-right: 0;
                    min-width: 80px;
                }
                & + & {
                    border-left: 1px solid #f0f0f0;
                }
            }
            &-num {
                color: #666;
                font-size: 20px;
            }
            &-link {
                cursor: pointer;
                &:hover {
                    color: #4cc3ff;
                }
            }
            &-label {
                color: #ccc;
            }
        }
        &__buttons {
            margin-top: 12px;
            display: flex;
        }
        &__manage {
            margin-left: 10px;
            &.mmv-button .mmv-button__button,
            &.mmv-button .mmv-button__button:hover {
                border-color: #fa0;
                color: #fa0;
            }
        }
    }
    &-user {
        flex-grow: 1;
        &__title {
            display: flex;
            align-items: center;
            padding: 6px 0;
        }
        &__name {
            font-size: 16px;
            line-height: 16px;
            font-weight: 600;
        }
        &__certification,
        &__intro {
            display: flex;
            margin-top: 6px;
            color: #999;
            line-height: 18px;
            span {
                margin-top: 2px;
                flex-shrink: 0;
                line-height: 1;
            }
            .mmv-symbol-icon {
                font-size: 14px;
                margin-right: 8px;
            }
        }
        &__level {
            &--self {
                cursor: pointer;
            }
            &.mmv-img-icon {
                margin-left: 10px;
                height: 16px;
                flex-shrink: 0;
            }
        }
        &__lvname {
            margin-left: 5px;
            color: #333;
        }
        &__gender {
            margin-left: 10px;
            font-size: 14px;
        }
        &__uid {
            margin-left: 10px;
            font-size: 12px;
            color: #ccc;
        }
    }
    &__subheader {
        width: 100%;
        padding: 0 30px;
        line-height: 50px;
        border-bottom: 1px solid #ebebeb;
        font-size: 16px;
    }
    &__menu {
        li {
            &:nth-of-type(3),
            &:nth-of-type(5) {
                border-bottom: 1px solid #f0f0f0;
            }
            &:last-child {
                border-bottom: none;
            }
        }
    }
    &__level {
        .mmv-action-sheet__content {
            width: 600px;
        }
    }
    &-content {
        width: 700px;
        float: right;
        .mmv-no-data .mmv-icon {
            font-size: 100px;
            color: #ccc;
        }
        &-container {
            .mmv-no-data {
                height: 500px;
            }
        }
    }
    &-post-card {
        border-top: 1px solid #ebebeb;
        padding-top: 24px;
        &:hover {
            background-color: #fcfcfc;
            transition: 0.3s background-color;
        }
        &:first-child {
            border-top: none;
        }
        .mmv-account-center-time {
            display: flex;
            color: #999;
            align-items: center;
            padding-left: 30px;
            line-height: 16px;
            .mmv-icon {
                font-size: 16px;
                color: #ccc;
            }
            &__small {
                font-size: 14px;
                margin-left: 10px;
            }
        }
        .mmv-article-card {
            overflow: hidden;
            &:hover {
                background-color: transparent;
            }
        }
    }
    &-banned {
        height: 600px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
</style>